package com.ankicoo.common;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RestController;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * Description: 启动类
 *
 * @author : QCYANG
 * @date : 2021/7/19 15:57
 */
@RestController
@SpringBootApplication
public class CommApplication {
    //标注一个类是配置类，spring boot在扫到这个注解时自动加载这个类相关的功能，比如前面的文章中介绍的配置AOP和拦截器时加在类上的Configuration
    //扫描组件 @ComponentScan(value = "com.spring.boot.controller") 配置扫描组件的路径

    /**
     * run
     */
    public static void main(String[] args) {
        SpringApplication.run(CommApplication.class, args);
    }


}
